package com.fos.BluetoothStory.util;

import java.util.ArrayList;
import java.util.Random;

import com.fos.BluetoothStory.model.EQBean;

public class AppConstance {
	// Key names received from the BluetoothChatService Handler
	public static final String DEVICE_NAME = "Device Name";
	public static final String TOAST = "TOAST";
	// Message types sent from the BluetoothService Handler
	public static final int MESSAGE_SIGNAL = 1;		// 蓝牙信号
	public static final int MESSAGE_POWER = 2;		// 设备电压
	public static final int MESSAGE_MUSIC = 3;		// 音乐实体
	
	// Debugging
	public static final String TAG = "BlueM";
	public static final boolean D = true;
	// Intent请求码
	public static final int REQUEST_CONNECT_DEVICE = 1;
	public static final int REQUEST_ENABLE_BT = 2;
	
	public static int sWholeGain = 0;
	public static int sZengYiNum = 0; //自定义EQ个数
	public static ArrayList<EQBean>  sEQList = new ArrayList<EQBean>();
	
	// 0 音箱   1 USB   2LINEIN  3TFcard  -1 默认值
	public static int sPlayState = -1;    //当前音箱处于的模式
    public static int sNeedState = -1;    //用户希望切换到的模式
    
    private static boolean isPlayOrPause;
    
    public static int sPID = -1;    //用户希望得到的目录编号
	
    public static boolean	isDeviceConnected = false; // 音箱是否已连接
    public static Random sRandom = new Random();
    
    public synchronized static void setIsPlayOrPause(boolean flag){
    	isPlayOrPause = flag;
    }
    
    public synchronized static boolean isPlayOrPause() {
		return isPlayOrPause;
	}
    
	public synchronized static void setNeedState(int i) {
		sNeedState = i;		
	}
}
